import Layout from "@/layout";

const usersRouter = {
  path: "/order/list",
  component: Layout,
  redirect: "noRedirect",
  name: "order",
  hidden: false,
  meta: {
    title: "订单管理",
    abbre: "订单",
    icon: "left_menu_order",
    navigation: "/order",
    id: "407"
  },
  children: [
    {
      path: "/order/list",
      component: () => import("@/views/order/orderList"),
      name: "order_list",
      hidden: false,
      meta: {
        title: "订单列表",
        noCache: false,
        navigation: "/order/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/list/add",
      component: () => import("@/views/order/orderList_add"),
      hidden: true,
      name: "order_list_add",
      meta: {
        title: "创建订单",
        bread: "订单列表,创建订单",
        noCache: true,
        navigation: "/order/list",
        icon: "menu_big_data"
      }
    },
    // 临时加单
    {
      path: "/order/list/temporaryadd",
      component: () => import("@/views/order/orderList_add_temporary"),
      hidden: true,
      name: "order_list_temporary_add",
      meta: {
        title: "临时加单",
        bread: "订单列表,临时加单",
        noCache: true,
        navigation: "/order/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/list/see",
      component: () => import("@/views/order/orderList_see"),
      hidden: true,
      name: "order_list_see",
      meta: {
        title: "查看订单",
        bread: "订单列表,查看订单",
        noCache: true,
        navigation: "/order/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/list/check/:id",
      component: () => import("@/views/order/orderList_check"),
      hidden: true,
      name: "order_list_check",
      meta: {
        title: "验收",
        bread: "订单列表,验收",
        noCache: true,
        navigation: "/order/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/list/edit",
      component: () => import("@/views/order/orderList_edit"),
      hidden: true,
      name: "order_list_edit",
      meta: {
        title: "编辑订单",
        bread: "订单列表,编辑订单",
        noCache: true,
        navigation: "/order/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/summary",
      component: () => import("@/views/order/orderSummary"),
      hidden: false,
      name: "order_summary",
      meta: {
        title: "订单汇总",
        noCache: true,
        navigation: "/order/summary",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/batch",
      component: () => import("@/views/order/orderBatch"),
      hidden: false,
      name: "order_batch",
      meta: {
        title: "批量核价",
        noCache: true,
        navigation: "/order/batch",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/batch/record",
      component: () => import("@/views/order/orderBatch_record"),
      hidden: true,
      name: "order_batch_record",
      meta: {
        title: "操作记录",
        bread: "订单列表,操作记录",
        noCache: true,
        navigation: "/order/batch",
        icon: "menu_big_data"
      }
    },
    // {
    //     path: '/order/check',
    //     component: () =>
    //         import ('@/views/order/orderCheck'),
    //     hidden:false,
    //     name: 'order_check',
    //     meta: { title: '订单校对', noCache: true,  navigation:'/order/check', icon: 'menu_big_data'}
    // },
    {
      path: "/order/return",
      component: () => import("@/views/order/orderReturn"),
      name: "order_return",
      hidden: false,
      meta: {
        title: "订单退货",
        noCache: true,
        navigation: "/order/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/return/add",
      component: () => import("@/views/order/orderReturn_add"),
      name: "order_return_add",
      hidden: true,
      meta: {
        title: "创建退货单",
        bread: "订单退货,创建退货单",
        noCache: true,
        navigation: "/order/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/return/see/:id",
      component: () => import("@/views/order/orderReturn_see"),
      name: "order_return_see)",
      hidden: true,
      meta: {
        title: "查看订单",
        bread: "订单退货,查看订单",
        noCache: true,
        navigation: "/order/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/return/check/:id",
      component: () => import("@/views/order/orderReturn_check"),
      name: "order_return_check)",
      hidden: true,
      meta: {
        title: "订单审核",
        bread: "订单退货,订单审核",
        noCache: true,
        navigation: "/order/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/label",
      component: () => import("@/views/order/orderLabel/index.vue"),
      name: "order_label",
      hidden: false,
      meta: {
        title: "订单标签",
        bread: "订单标签",
        noCache: true,
        navigation: "/order/label",
        icon: "menu_big_data"
      }
    },
    {
      path: "/order/label/changeUser/:id",
      component: () => import("@/views/order/orderLabel/changeUser.vue"),
      name: "order_label_changeUser",
      hidden: true,
      meta: {
        title: "批量选择用户",
        bread: "批量选择用户",
        noCache: true,
        navigation: "/order/label",
        icon: "menu_big_data"
      }
    },
    // {
    //   path: "/order/exchange",
    //   component: () => import("@/views/order/orderExchange"),
    //   name: "order_exchange",
    //   hidden: true,
    //   meta: {
    //     title: "订单退货",
    //     noCache: true,
    //     navigation: "/order/exchange",
    //     icon: "menu_big_data"
    //   }
    // }
  ]
};

export default usersRouter;
